//
//  HKProfileHeaderView.m
//  HKTimeKitApp
//
//  Created by huzhaoke1 on 2023/5/11.
//

#import "HKProfileHeaderView.h"
#import "HKCommonDefine.h"
#import "UIView+properties.h"
#import "HKFontHelper.h"
#import "UILabel+create.h"
#import <Masonry/Masonry.h>

static const CGFloat kKSLeftMargin = 24.f;

@interface HKProfileHeaderView ()

@property (nonatomic, strong) UILabel *titleLab;

@end

@implementation HKProfileHeaderView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.titleLab];
        [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(kKSLeftMargin);
            make.centerY.mas_equalTo(self.contentView);
        }];
    }
    return self;
}

+ (CGFloat)cellHeightWithContent:(id)content {
    return 94;
}

#pragma mark - getter & setter
- (UILabel *)titleLab {
    if (!_titleLab) {
        _titleLab = [UILabel labelWithFont:[HKFontHelper appcnBoldFontWithSize:16]
                                    bgColor:nil
                                  textColor:UIColorFromRGB(0x333333) textAligment:NSTextAlignmentRight];
        _titleLab.text = @"常用工具";
    }
    return _titleLab;
}

@end
